package mrh.niubi.librarysystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.web.multipart.MultipartFile;

public class Book {

    @TableId(type = IdType.AUTO)
    private int id;
    private String bookName;
    private String author;
    private Double deposit;
    private String position;
    private Long num;

    private String imgUrl;


    public Book(int id, String bookName, String author, Double deposit, String position, Long num, String imgUrl) {
        this.id = id;
        this.bookName = bookName;
        this.author = author;
        this.deposit = deposit;
        this.position = position;
        this.num = num;
        this.imgUrl = imgUrl;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Double getDeposit() {
        return deposit;
    }

    public void setDeposit(Double deposit) {
        this.deposit = deposit;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", deposit=" + deposit +
                ", position='" + position + '\'' +
                ", num=" + num +
                '}';
    }
}
